<template>
  <van-popup v-model="codePopupShow" round :close-on-click-overlay="false" style="background: transparent;">
    <div class="codeBox">
      <img :src="imgSrc" alt="" />
    </div>
    <div class="iconBox" @click="assistantPreCodeClose">
      <i class="iconfont icon-adsystem_icon_cancle"></i>
    </div>
  </van-popup>
</template>
<script>
export default {
  props: {
    codePopupShow: {
      type: Boolean,
      default: false
    },
    imgSrc: {
      type: String,
      default: ""
    }
  },
  data() {
    return {};
  },
  methods: {
    assistantPreCodeClose() {
      this.$emit("assistantPreCodeClose");
    }
  }
};
</script>
<style lang="scss" scoped>
.codeBox {
  width: 15.63rem;
  height: 14.31rem;
  background: #ffffff;
  border-radius: 0.63rem;
  display: flex;
  justify-content: center;
  align-items: center;
  img {
    width: 11.31rem;
    height: 11.31rem;
  }
}
.iconBox {
  margin: 0 auto;
  margin-top: 1.59rem;
  width: 2rem;
  height: 2rem;
  .icon-adsystem_icon_cancle {
    color: #d6d6dc;
    font-size: 2rem;
  }
}
</style>
